package sy.service;

import sy.pageModel.BaseEntity;
import sy.pageModel.DataGrid;
import sy.pageModel.DeptPic;

import java.util.List;

/**
 * Created by Administrator on 2016-06-29.
 */
public interface PicServiceI {
    /**
     * 查询图片信息
     * @param pic
     * @return
     */
    DataGrid findPicDataGird(DeptPic pic);

    /**
     * 查询单位类型
     * @param types
     * @return
     */
    List<BaseEntity> findCodeList(String types);

    /**
     * 添加图片信息
     * @param pic
     * @return
     */
    int addPicService(DeptPic pic)throws Exception;

    int editPicService(DeptPic pic) throws Exception;

    int deletePicService(String id) throws Exception;
}
